package com.zx.map.dao;

import java.util.List;
import org.springframework.dao.DataAccessException;
import com.zx.map.dao.model.Product;
import com.zx.map.dao.model.ProductExample;

public interface ProductDao {
	/**
	 * 根据Model查找List
	 * @param pageSize
	 * @param pageBegin
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public List<Product> getListByExample(ProductExample example) throws DataAccessException;
	/**
	 * 根据单Key查找Model
	 * 
	 * @param example
	 * @return
	 * @throws DataAccessException
	 */
	public Product selectByPrimaryKey(long key) throws DataAccessException;
}